package com.wl.day74.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginAction extends BaseAction{
	@RequestMapping("/login")
	public String login(String username, String password){
		if(username.equals("admin") && password.equals("admin")){
			System.out.println("hello");
			return "index";
		}else{
			return "login";
		}
	}
}
